package cn.doitedu.common;

import java.io.Serializable;

public class Task implements Serializable {

    private String taskId;
    public Task(String taskId){
        this.taskId = taskId;
    }
    public void runTask(){

        while(true){
            System.out.println("hahahaha ,task: "+ taskId +" 欢乐地跑起来了");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
